package com.ftg.learn.springboot.contact.service;

import com.ftg.learn.springboot.contact.mapper.opinionMapper;
import com.ftg.learn.springboot.contact.pojo.opinion;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class opinionService {

	@Autowired
	opinionMapper om;

	public int addController(opinion opinion){

		return om.addController(opinion);
	}

	public List<opinion> showall(String conname) {

		return om.showall(conname);
	}
}
